function copy (content) {
  const inputEl = document.createElement('input');
  inputEl.style.position = 'absolute';
  inputEl.style.top = 0;
  inputEl.style.left = 0;
  inputEl.style.opacity = 0;
  inputEl.value = content;
  document.body.appendChild(inputEl);
  inputEl.select();
  document.execCommand('copy');
  document.body.removeChild(inputEl);
}

const CommonUtils = {
  copy
};

export {
  CommonUtils
};
